package com.ayf.payment.game.api.service.remote.impl;

import com.ayf.payment.game.api.SiteStatisticsRemoteService;
import com.ayf.payment.game.api.dto.SiteStatisticsDTO;
import com.ayf.payment.game.api.dto.SiteStatisticsSummaryDTO;
import com.ayf.payment.game.api.dto.criteria.CleanCriteria;
import com.ayf.payment.game.api.dto.criteria.SiteStatisticsCriteria;
import com.ayf.payment.game.api.service.SiteStatisticsService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author wwl
 * @description:
 * @date 2020/7/14 11:53
 */
@Service(group = "xygpay-rpc-statistics",version = "${XY_STATISTICS_DUBBO_VERSION}")
public class SiteStatisticsRemoteServiceImpl implements SiteStatisticsRemoteService {
    @Autowired
    private SiteStatisticsService siteStatisticsService;

    @Override
    public void saveSiteStatistics(SiteStatisticsDTO siteStatisticsDTO) {
        siteStatisticsService.saveSiteStatistics(siteStatisticsDTO);
    }

    @Override
    public void saveSiteStatisticsPlayers(SiteStatisticsDTO siteStatisticsDTO) {
        siteStatisticsService.saveSiteStatisticsPlayers(siteStatisticsDTO);
    }

    @Override
    public void saveSiteStatisticsOrderNumAndChargeAmt(SiteStatisticsDTO siteStatisticsDTO) {
        siteStatisticsService.saveSiteStatisticsOrderNumAndChargeAmt(siteStatisticsDTO);
    }

    @Override
    public SiteStatisticsSummaryDTO list(SiteStatisticsCriteria siteStatisticsCriteria) {
        return siteStatisticsService.list(siteStatisticsCriteria);
    }

    @Override
    public int cleanSiteStatistics(CleanCriteria clean) {
        return siteStatisticsService.cleanSiteStatistics(clean);
    }
}
